<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% String path = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath(); %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改信息</title>
<%-- <script type="text/javascript"
	src="<%=path%>/common/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
	var path = '<%=path%>';
	var userId = ${userId};
</script>
<script type="text/javascript" src="<%=path%>/js/updateUser.js"></script> --%>
</head>
<body>
	<form action="<%=path%>/userServlet">
		<!-- 数据回显 -->
		<input type="hidden" name="method" value="updateUser" />
		<!-- 文本框直接对value属性赋值 -->
		<h1>修改员工信息界面</h1>
		<span>用户ID：</span><input type="text" name="id"  value= "${user1.id}"/> <br /> <br /> 
		<span>登陆账户：</span><input type="text" name="name" value="${user1.userName}"/> <br /> <br /> 
		<span>密码：</span><input type="text" name="password" value="${user1.password}"/> <br /> <br /> 	
		<span>职位：</span><select name="userPosition" >
			<option ${user1.userPosition == 1 ? 'selected' : ''}>店长</option>
			<option ${user1.userPosition == 2 ? 'selected' : ''}>员工</option>	
		</select><br /> <br /> 
		<span>姓名：</span><input type="text" name="userName" value="${user1.name}"/><br /><br /> 
		<span>性别：</span><input type="radio" name="userSex" ${user1.userSex=='男'?'checked':''}/>男
	                     <input type="radio" name="userSex" ${user1.userSex=='女'?'checked':''}/>女<br /><br />
		<span>入职日期：</span><input type="data" name="userHiredate" value="${user1.userHiredate}"/><br /><br />
		<span>离职日期：</span><input type="data" name="userLeavedate" value="${user1.userLeavedate}"/><br /><br />
	    <span>身份证号码：</span><input type="text" name="userIdCard" value="${user1.userIdCard}"/><br /><br />
		<span>年龄：</span><input type="text" name="userAge" value="${user1.userAge}"/><br /><br />
		<span></span><input type="submit" value="保存" />

	</form>
</body>
</html>
</body>
</html>